package com.net.xpay.core.dao;

import com.net.xpay.core.domain.UserWithdrawRecord;
import com.net.xpay.core.model.UserWithdrawRecordSearchModel;
import com.net.common.annotation.DataShard;
import com.net.common.dao.Page;
import com.net.common.dao.VersionedMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author 86188
 */
@DataShard("xpay")
@Repository
public interface UserWithdrawRecordMapper extends VersionedMapper<Long, UserWithdrawRecord> {
    List<UserWithdrawRecord> search(@Param("searchModel") UserWithdrawRecordSearchModel searchModel, @Param("page") Page page);


    long searchCount(@Param("searchModel") UserWithdrawRecordSearchModel searchModel);

    long statTransferMoney(@Param("minEndTime") LocalDateTime startTime, @Param("maxEndTime") LocalDateTime endTime);
}
